package com.lz.autobox;

/**
 * Equals..
 *
 * @author Lizhong
 * @date 2019/3/23
 */
public class EqualsDemo01 {
    /**
     * 包装类型比较地址除-128-127,基本类型包括String会有常量池
     * @param args
     */
    public static void main(String[] args) {
        Integer a = 5;
        Integer b = 5;
        Integer a0 = 200;
        Integer b0 = 200;
        int c0 = 200;

        Long l=10L;

        String s = "你好";
        String s0 = "你好";
        System.out.println(a == b);
        System.out.println(a0 == b0);
        System.out.println(a0 == c0);
        System.out.println(s == s0);
        System.out.println(l == (a+b));
    }

}
